package com.etone.smartAudit.enums;

import lombok.Getter;

/**
 * @author 张任豪
 */

public enum  WorkItemType {

    内控测试评价(0,"内控测试评价"),
    经济责任审计(1,"经济责任审计"),
    专项(2,"专项");

    @Getter
    private Integer value;
    @Getter
    private String remark;

    WorkItemType(Integer value,String remark) {
        this.value = value;
        this.remark = remark;
    }

    public static String getRemark(Integer value){
        if (value == null){
            return null;
        }
        WorkItemType[] values = WorkItemType.values();
        for (WorkItemType workItemType : values) {
            if (workItemType.value.equals(value)){
                return workItemType.getRemark();
            }
        }
        return null;
    }
}
